package com.eh.decorator;

import com.eh.decorator.beverage.Beverage;
import com.eh.decorator.beverage.Espresso;
import com.eh.decorator.condiment.Mocha;
import com.eh.decorator.condiment.Soy;

/**
 * Created by David on 2016/4/24.
 */
public class StarbuzzCoffee {
    public static void main(String[] args) {
        Beverage beverage = new Espresso();
        System.out.println(beverage.getDescription());
        System.out.println(beverage.cost());

        Beverage beverage1 = new Mocha(beverage);
        System.out.println(beverage1.getDescription());
        System.out.println(beverage1.cost());

        Beverage beverage2 = new Soy(beverage1);
        System.out.println(beverage2.getDescription());
        System.out.println(beverage2.cost());
    }
}
